Filter hook 'term_{$field}_rss'

in WP Core File wp-includes/taxonomy.php at line 1866

View Source

term_{$field}_rss

Filter Hook
Description
Filters the term field for use in RSS. The dynamic portion of the hook name, `$field`, refers to the term field.

Hook Information

File Location wp-includes/taxonomy.php View on GitHub
Hook Type Filter
Line Number 1866

Hook Parameters

Type Name Description
mixed $value Value of the term field.
string $taxonomy Taxonomy slug.

Usage Examples

Basic Usage
<?php
// Hook into term_{$field}_rss
add_filter('term_{$field}_rss', 'my_custom_filter', 10, 2);

function my_custom_filter($value, $taxonomy) {
    // Your custom filtering logic here
    return $value;
}

Source Code Context

wp-includes/taxonomy.php:1866 - How this hook is used in WordPress core
<?php
1861  		 * @since 2.3.0
1862  		 *
1863  		 * @param mixed  $value    Value of the term field.
1864  		 * @param string $taxonomy Taxonomy slug.
1865  		 */
1866  		$value = apply_filters( "term_{$field}_rss", $value, $taxonomy );
1867  
1868  		/**
1869  		 * Filters the taxonomy field for use in RSS.
1870  		 *
1871  		 * The dynamic portions of the hook name, `$taxonomy`, and `$field`, refer

PHP Documentation

<?php
/**
		 * Filters the term field for use in RSS.
		 *
		 * The dynamic portion of the hook name, `$field`, refers to the term field.
		 *
		 * @since 2.3.0
		 *
		 * @param mixed  $value    Value of the term field.
		 * @param string $taxonomy Taxonomy slug.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/taxonomy.php
Related Hooks

Related hooks will be displayed here in future updates.